#include "mycoin.h"
#include<QDebug>
//MyCoin::MyCoin(QWidget *parent) : QPushButton(parent)
//{

//}
    MyCoin::MyCoin(QString btnImg)
    {
       QPixmap pix;
       bool ret = pix.load(btnImg);
       if(!ret)
       {
           QString str=QString("图片btnImg加载失败").arg(btnImg);
           qDebug()<<str;
           return;

       }
       this->setFixedSize(pix.width(),pix.height());
       this->setStyleSheet("QPushButton{border:0px;}");/*设置不规则图片样式*/
       this->setIcon(pix);
       this->setIconSize(QSize(pix.width(),pix.height()));
    }
